#include "frm_diet.h"
#include "ui_frm_diet.h"
#include "frm_dtbodybuilding.h"
#include "frm_dttonifyng.h"
#include "frm_menu.h"
#include <QDesktopWidget>


frm_diet::frm_diet(QDialog *parent) :
    QDialog(parent),
    ui(new Ui::frm_diet)
{
    ui->setupUi(this);
    setWindowFlags( Qt:: WindowTitleHint | Qt:: CustomizeWindowHint | Qt:: WindowMinimizeButtonHint | Qt:: WindowMaximizeButtonHint);
    this->move(QApplication::desktop()->screen()->rect().center() - this->rect().center());
}

frm_diet::~frm_diet()
{
    delete ui;
}

void frm_diet::on_pushButton_clicked()
{
    Frm_dtbodybuilding *frm_dtbodybuilding= new Frm_dtbodybuilding();
    frm_dtbodybuilding->show();
    this->hide();
}

void frm_diet::on_pushButton_2_clicked()
{
    Frm_dttonifyng *frm_dttonifyng= new Frm_dttonifyng();
    frm_dttonifyng->show();
    this->hide();
}

void frm_diet::on_pbBack_clicked()
{
    frm_menu *menu = new frm_menu();
    this->hide();
    menu->show();
}
